package demo19_Lock;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author kunkun
 * @className Test01_Fair
 * @Description 公平锁
 * @date 2025/3/8 22:50
 */
public class Test01_Fair {
    public static void main(String[] args) {
        ReentrantLock lock = new ReentrantLock(true);//公平锁
        ReentrantLock unlock = new ReentrantLock(false);//非公平锁

    }
}
